
 //组件配置文件
 Schema.addCategory({
	name: "flow",
	text: "通用元素"
});
Schema.addShape({
	name: "text",
	title: "文本",
	isnowcompent: true,
	category: "flow",
	props: {w: 180, h: 48},
	path: [{actions: {ref: "rectangle"}}],
	samplePictures: "<i class='menuImg txtImg'></i>",    // 显示的组件
	componentHtml: '<textarea class="textDiv overflow" style="font-size: 16px;font-family:宋体;color:#000; " readonly >请输入文字</textarea>',    // 实际在操作区域显示的组件
	ajaxUrl: '',
	textData: "",
	nodel: false,
	computerType: "text",
	computerStyle: "text01",
	scriptName: "",
	componentid: 0,
	componenturl: "",
	fontStyle: {
		fontFamily: "宋体",
		size: 16,
		color: "0, 0, 0",
		
	},
	componentsObj: {
	   textAer:"请输入文字"
	},
	maxlen: -1
});

var imgDefault = $("#defaultImages").attr("rel-url");


Schema.addShape({
	name: "uploadPhoto",
	title: "上传图片",
	isnowcompent: true,
	category: "flow",
	props: {w: 200, h: 124},
	path: [{actions: {ref: "rectangle"}}],
	samplePictures: "<i class='menuImg uploadPhotoImg'></i>",    // 显示的组件
	componentHtml: '<div class="upload-img" style="background-image:url('+imgDefault+');background-size:100% 100%;background-repeat: no-repeat;background-position:center center;"></div>',    // 实际在操作区域显示的组件
	ajaxUrl: '',
	computerType: "uploadPhoto",
	computerStyle: "uploadPhoto01",
	scriptName: "",
	nodel: false,
	componentid: 0,
	componenturl: "",
	componentsObj: {
		code:"",
		imgurl:imgDefault,
		nowpage:"1",
		opacity:1,
		opentype:"none",
		openval:"",
		hideIfNotFound: false,
		serviceEvaluationOpen: false
	},
	maxlen: -1
});